//
// Created by Amon on 2021/10/16.
//

#ifndef AMONPLAYER_JNIBRIDGE_H
#define AMONPLAYER_JNIBRIDGE_H

#include <jni.h>
#include "CrashAnalyser.h"


class JNIBridge {
private:
    JavaVM *javaVm;
    jobject callbackObj;
    jclass nativeCrashMonitorClazz;

public:
    JNIBridge(JavaVM *javaVm, jobject callbackObj, jclass nativeCrashMonitorClazz);

    void throwException2Java(struct _native_handler_context *handler_context);
};


#endif //AMONPLAYER_JNIBRIDGE_H
